<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>{$head[title]}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="{$head[keywords]}" name="keywords" />
<meta content="{$head[description]}" name="description" />
<base href="{SITE_URL}" />
<link href="favicon.ico" rel="shortcut icon" />
<link href="../skin/style.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="{$head[title]}" href="/rss.php?rssid={$catid}" />
<script language="JavaScript" src="misc/config.js"></script>
<script language="JavaScript" src="misc/jquery.min.js"></script>
<script language="JavaScript" src="misc/common.js"></script>
<script language="JavaScript" src="misc/validator.js"></script>
</head>
<body>

{template 'header.html'}

<div class="container">
    <div class="aside">
        {template "left.html",'yellowpage'}
    </div>
    
    <div class="main">
       <div class="head">人才库</div>
        <table cellpadding="0" cellspacing="1" class="table_list"> 
              <tr>
                <th>真实姓名</th>			
                <th>职位名称</th>
                <th width="110">投递时间</th>
                <th width="100">状态</th>
                <th width="100">操作</th>
              </tr>
             {loop $applys['result'] $result}
            <tr>
                <td><a href="{BUSINESSDIR}?file=apply&amp;action=showapply&amp;stockid={$result['stockid']}">{$result['truename']}</a></td>
                <td><a href="{url($result[url])}">{$result['title']}</a></td>
                <td>{date('Y.m.d',$result['addtime'])}</td>
                <td style="color:red">{if $result['status'] == 2}已邀请面试{elseif $result['status'] == 1}已查看{else}未查看{/if}</td>
                <td>{if $result['status'] == 2}无{elseif $result['status'] == 1}<a href="javascript:void(0)" onClick="javascript:invite({$result['stockid']})">邀请面试</a>{else}<a href="{BUSINESSDIR}?file=apply&amp;action=showapply&amp;stockid={$result['stockid']}">查看简历</a>{/if}</td>
            </tr>
            {/loop}
            </table>
            <div class="pagination">{$pages}</div>
            <div class="head">提示信息</div>
            <table cellpadding="0" cellspacing="1" class="table"> 
              <tr>
                <td> 您可以通过邀请面试来给面试者发送短消息和邮件。邀请后将不能再次邀请。
        <br/>
                </td>
              </tr>
            </table>
    </div>
</div>


{template 'footer.html'}
<SCRIPT LANGUAGE="JavaScript">
<!--
$().ready(function() {
  $('form').checkForm(1);
});

var invite = function(stockid)
{
	$.get("{BUSINESSDIR}",{'file':'apply','action':'invite','stockid':stockid,'rnd':Math.random()},function(data){if(data == 1){alert('邀请成功');window.location.reload();}});
}
//-->
</SCRIPT>

<script type="text/javascript" src="images/js/validator.js"></script>
<script type="text/javascript" src="yp/images/js/info_add.js"></script>